package exo1;

/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 14/10/13
 * Time: 14:00
 * To change this template use File | Settings | File Templates.
 */
public class Cuboid extends Shape3D {

    private double length;
    private double width;
    private double height;

    public Cuboid(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    public double getLength() {
        return length;
    }

    public double getWidth() {
        return width;
    }

    public double getHeight() {
        return height;
    }


    @Override
    public double volume() {
        double v;
        v = length*width*height;
        return v;
    }

    @Override
    public double surface() {
        double s;
        s = (length * width) * 6;
        return s;
    }
}
